home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / tools / gcc / gcc270_src.lha / gcc-2.7.0-amiga / config / rs6000 / aix3newas.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-15  |  1.7 KB  |  49 lines

  1. /* Definitions of target machine for GNU compiler,
  2.    for IBM RS/6000 POWER running AIX version 3.x with the fixed assembler.
  3.    Copyright (C) 1995 Free Software Foundation, Inc.
  4.    Contributed by Jason Merrill (jason@cygnus.com).
  5.  
  6. This file is part of GNU CC.
  7.  
  8. GNU CC is free software; you can redistribute it and/or modify
  9. it under the terms of the GNU General Public License as published by
  10. the Free Software Foundation; either version 2, or (at your option)
  11. any later version.
  12.  
  13. GNU CC is distributed in the hope that it will be useful,
  14. but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. GNU General Public License for more details.
  17.  
  18. You should have received a copy of the GNU General Public License
  19. along with GNU CC; see the file COPYING.  If not, write to
  20. the Free Software Foundation, 59 Temple Place - Suite 330,
  21. Boston, MA 02111-1307, USA.  */
  22.  
  23.  
  24. #include "rs6000/rs6000.h"
  25.  
  26. /* Tell the assembler to assume that all undefined names are external.  */
  27.  
  28. #undef ASM_SPEC
  29. #define ASM_SPEC "-u"
  30.  
  31. /* These are not necessary when we pass -u to the assembler, and undefining
  32.    them saves a great deal of space in object files.  */
  33.  
  34. #undef ASM_OUTPUT_EXTERNAL
  35. #undef ASM_OUTPUT_EXTERNAL_LIBCALL
  36. #define ASM_OUTPUT_EXTERNAL(FILE, DECL, NAME)    \
  37. { rtx _symref = XEXP (DECL_RTL (DECL), 0);    \
  38.   if ((TREE_CODE (DECL) == VAR_DECL        \
  39.        || TREE_CODE (DECL) == FUNCTION_DECL)    \
  40.       && (NAME)[0] != '*'            \
  41.       && (NAME)[strlen (NAME) - 1] != ']')    \
  42.     {                        \
  43.       char *_name = (char *) permalloc (strlen (XSTR (_symref, 0)) + 5); \
  44.       strcpy (_name, XSTR (_symref, 0));    \
  45.       strcat (_name, TREE_CODE (DECL) == FUNCTION_DECL ? "[DS]" : "[RW]"); \
  46.       XSTR (_symref, 0) = _name;        \
  47.     }                        \
  48. }
  49.